@mixin line-hight($number) {
    height: $number;
    line-height: $number;
}
@mixin bg($bg) {
    background: url("../../../../#{$bg}") 100% 100% no-repeat;
    background-size: cover;
}
@mixin home_lg() {
    .table {
        // @include line-hight(442px);
        @include bg("assets/images/activity_table_bg.png");
    }
    .legalAid {
        max-width: 1200px;
        margin: 0 auto;
        margin-top: 25px;
        // &:nth-child(4n + 4) .legalAid_item {
        //     padding-right: 0;
        // }
        .legalAid_list {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
        }
        .legalAid_item {
            cursor: pointer;
            // float: left;
            width: 290px;
            height: 405px;
            margin-top: 25px;
            padding-right: 10px;
            .item_tu {
                width: 290px;
                height: 256px;
                display: block;
                margin: 0 auto;
            }
            .imgBox {
                width: 290px;
                height: 256px;
                background-size: cover;
                background-position: center;
            }
            .content {
                box-sizing: border-box;
                border: 1px solid #e9e9e9;
                padding: 15px 15px 10px 15px;
                .item_title {
                    font-weight: bold;
                    font-size: 20px;
                    color: #333333;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
                p {
                    font-size: 16px;
                    color: #666;
                    margin-top: 17px;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                    height: 41px;
                }
                .time {
                    margin-top: 20px;
                    font-size: 16px;
                    color: #999;
                    img {
                        width: 15px;
                        height: 15px;
                    }
                }
            }
        }
        .el-pagination {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
            @include line-hight(70px);
            margin-top: 50px;
        }
    }
    .details {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        box-sizing: border-box;
        padding: 0 30px;
        h1 {
            font-size: 26px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #333;
            text-align: center;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            // padding-top: 0.45px;
            // padding-bottom: 0.36px;
            font-weight: bold;
        }
        .return {
            width: 100%;
            @include line-hight(80px);
            cursor: pointer;
            min-width: 100px;
            display: block;
            text-align: right;
            font-size: 16px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #666;

            img {
                width: 7px;
                height: 13px;
                margin-right: 15px;
            }
        }
        .content {
            margin-top: 20px;
            width: 100%;
            font-size: 16px;
        }
        .allTime {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-top: 52px;
            margin-bottom: 63px;

            .time_item {
                // height: 0.5px;
                display: flex;
                align-items: center;
                font-size: 18px;
                white-space: nowrap;
                span {
                    color: #aa171f;
                }
                div {
                    color: #333;
                }
            }
        }
        .signUp {
            display: flex;
            flex-direction: column;
            .signUp_title {
                font-size: 24px;
                color: #333;
                position: relative;
                padding-left: 43px;
                &::before {
                    content: "";
                    display: block;
                    position: absolute;
                    left: 0;
                    top: 50%;
                    transform: translate(0%, -50%);
                    width: 29px;
                    height: 9px;
                    background: #aa171f;
                    margin-right: 12px;
                }
            }
            .signUp_list {
                margin-top: 44px;
                display: flex;
                justify-content: flex-start;
                .signUp_item {
                    cursor: pointer;
                    width: 33%;
                    box-sizing: border-box;
                    padding-right: 10px;
                    color: #333;
                    font-size: 16px;
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    span {
                        white-space: nowrap;
                        // padding-right: 0.23px;
                    }
                    input {
                        margin-left: 10px;
                        // width: 3.3px;
                        box-sizing: border-box;
                        padding-left: 10px;
                        flex: 1;
                        @include line-hight(60px);
                        border: 0.01px solid #ababab;
                        border-radius: 4px;
                    }
                }
            }
            .up {
                margin: 30px 0;
                display: flex;
                justify-content: flex-start;
                .up_btn {
                    cursor: pointer;
                    width: 33%;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-right: 10px;
                    span {
                        font-size: 16px;
                        white-space: nowrap;
                        opacity: 0;
                        // padding-right: 0.23px;
                    }
                    div {
                        font-size: 24px;
                        flex: 1;
                        @include line-hight(74px);
                        text-align: center;
                        background: #aa171f;
                        border-radius: 4px;
                        color: #fff;
                        display: inline-block;
                    }
                }
            }
        }
    }
}
@mixin home_sm() {
    .table {
        // @include line-hight(3.4rem);
        @include bg("assets/images/activity_table_bg.png");
    }
    .legalAid {
        // max-width: 12rem;
        // margin: 0 auto;
        width: auto;
        background: #fff;
        margin: 0 0.3rem;
        margin-top: 0.25rem;
        // &:nth-child(4n + 4) .legalAid_item {
        //     padding-right: 0;
        // }

        .legalAid_list {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
        }

        .legalAid_item {
            cursor: pointer;
            // float: left;
            width: 2.9rem;
            height: 4.05rem;
            margin-top: 0.25rem;
            // padding-right: 0.1rem;
            // background-color: #e3e3e3;
            .item_tu {
                width: 2.9rem;
                height: 2.56rem;
                display: block;
                margin: 0 auto;
            }
            .imgBox{
                width: 2.9rem;
                height: 2.56rem;
               background-size: cover;
               background-position: center; 
            }
            .content {
                box-sizing: border-box;
                border: 0.01rem solid #e9e9e9;
                padding: 0.15rem 0.15rem 0.1rem 0.15rem;
                .item_title {
                    height: 0.3rem;
                    font-weight: bold;
                    font-size: 0.2rem;
                    color: #333333;
                    overflow:hidden;
                    text-overflow:ellipsis;
                    white-space:nowrap;
                }
                p {
                    font-size: 0.16rem;
                    color: #666;
                    margin-top: 0.17rem;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                    height: 0.6rem;
                    line-height: .3rem;
                }
                .time {
                    margin-top: 0.2rem;
                    font-size: 0.16rem;
                    color: #999;
                    img {
                        width: 0.15rem;
                        height: 0.15rem;
                    }
                }
            }
        }
        .el-pagination {
            max-width: 12rem;
            margin: 0 auto;
            text-align: center;
            @include line-hight(0.7rem);
            margin-top: 0.5rem;
        }
    }
    .details {
        // max-width: 12rem;
        margin: 0 auto;
        position: relative;
        background-color: #fff;
        h1 {
            box-sizing: border-box;
            padding: 0 0.3rem;
            font-size: 0.26rem;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #333;
            text-align: center;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            // padding-top: 0.45rem;
            // padding-bottom: 0.36rem;
            font-weight: bold;
        }
        .return {
            box-sizing: border-box;
            padding: 0 0.3rem;
            // width: 100%;
            @include line-hight(0.8rem);
            cursor: pointer;
            min-width: 1rem;
            display: block;
            text-align: right;
            font-size: 0.16rem;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #666;

            img {
                width: 0.07rem;
                height: 0.13rem;
                margin-right: 0.15rem;
            }
        }
        .content {
            box-sizing: border-box;
            padding: 0 0.3rem;
            margin-top: 0.2rem;
            width: 100%;
            font-size: 0.16rem;
        }
        .allTime {
            // background-color: #F8F8F8;
            box-sizing: border-box;
            padding: 0.52rem 0.3rem 0.63rem 0.3rem;
            display: flex;
            flex-direction: column;
            .time_item {
                margin-top: 0.2rem;
                display: flex;
                align-items: center;
                font-size: 0.24rem;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;

                span {
                    color: #aa171f;
                }
                div {
                    color: #333;
                }
            }
        }
        .signUp {
            box-sizing: border-box;
            padding: 0 0.3rem;
            background-color: #f8f8f8;
            display: flex;
            flex-direction: column;
            .signUp_title {
                width: 100%;
                margin: 0 auto;
                text-align: center;
                font-size: 0.36rem;
                color: #bb0013;
                @include line-hight(1.21rem);
                &::before {
                    content: "";
                    display: none;
                }
            }
            .signUp_list {
                margin-top: 0.44rem;
                display: flex;
                flex-direction: column;
                .signUp_item {
                    cursor: pointer;
                    box-sizing: border-box;
                    color: #696969;
                    font-size: 0.24rem;
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    margin-bottom: 0.2rem;
                    span {
                        white-space: nowrap;
                        // padding-right: 0.23rem;
                    }
                    input {
                        margin-left: 0.1rem;
                        // width: 3.3rem;
                        box-sizing: border-box;
                        padding-left: 0.1rem;
                        flex: 1;
                        @include line-hight(0.8rem);
                        background: #fff;
                        border: 0.01rem solid #ababab;
                        border-radius: 0.04rem;
                    }
                }
            }
            .up {
                margin: 0.3rem 0;
                display: flex;
                justify-content: flex-start;
                .up_btn {
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    width: 100%;
                    box-sizing: border-box;
                    padding-right: 0.92rem;
                    margin-bottom: 0.5rem;
                    span {
                        font-size: 0.24rem;
                        white-space: nowrap;
                        opacity: 0;
                        // padding-right: 0.23rem;
                    }
                    div {
                        font-size: 0.32rem;
                        flex: 1;
                        @include line-hight(0.8rem);
                        text-align: center;
                        background: #aa171f;
                        border-radius: 0.04rem;
                        color: #fff;
                        display: inline-block;
                    }
                }
            }
        }
    }
}
//* 设备宽度大于 320px 小于 640px */
@media only screen and (min-width: 320px) and (max-width: 640px) {
    @include home_sm;
}
@media only screen and (min-width: 640px) and (max-width: 1199px) {
    @include home_lg;
}
@media screen and (min-width: 1200px) {
    @include home_lg;
}
